<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "menu".
 *
 * @property int $id
 * @property int $productId
 * @property int $count
 * @property int $chargeId
 * @property int $ctime
 */
class Menu extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'menu';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['productId', 'count', 'chargeId', 'ctime'], 'required'],
            [['productId', 'count', 'chargeId', 'ctime'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'productId' => 'Product ID',
            'count' => 'Count',
            'chargeId' => 'Charge ID',
            'ctime' => 'Ctime',
        ];
    }
}
